from time import sleep

from appium.webdriver.common.appiumby import AppiumBy

from basic.base_page import BasePage



class pageMiNewArrivals(BasePage):


    def new_calendar_update_goto_shopping_cart(self):
        from page.page_shopping.page_service_shopping import PageShopping

        新品榜单 = "new UiSelector().className(\"android.view.ViewGroup\").instance(28)"
        去购买 = "new UiSelector().text(\"去购买\").instance(0)"
        REDMI_K90_ProMAX = "new UiSelector().resourceId(\"com.xiaomi.shop.plugin.rank:id/detail_product_buy_tv\").instance(2)"
        self._click(新品榜单)
        self._click(去购买)
        self._click(REDMI_K90_ProMAX)



        return PageShopping()


    def new_product_list_goto_shopping_cart(self):
        pass

